package com.weblog.weblog.admin.convert;

import com.weblog.weblog.admin.model.vo.artice.FindArticleDetailRspVO;
import com.weblog.weblog.common.domain.dos.ArticleDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface ArticleDetailConvert {

    /*
     * 初始化 convert 实例
     * @author gc
     * @date 2023/10/15 21:18
     * @param null
     * @return null
     */
    ArticleDetailConvert INSTANCE = Mappers.getMapper(ArticleDetailConvert.class);

    /*
     * DO ——> VO
     * @author gc
     * @date 2023/10/15 21:18
     * @param bean
     * @return com.weblog.weblog.admin.model.vo.artice.FindArticleDetailRspVO
     */
    FindArticleDetailRspVO convertDO2VO(ArticleDO bean);

}
